package com.zx.kitchen.index.common.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/3/7.
 */
public class DishesInfoBean implements Parcelable {
    private String id;
    private String name;
    private String price;
    private String unit;
    private String brand;
    private String standard;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.price);
        dest.writeString(this.unit);
        dest.writeString(this.brand);
        dest.writeString(this.standard);
    }

    public DishesInfoBean() {
    }

    protected DishesInfoBean(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.price = in.readString();
        this.unit = in.readString();
        this.brand = in.readString();
        this.standard = in.readString();
    }

    public static final Parcelable.Creator<DishesInfoBean> CREATOR = new Parcelable.Creator<DishesInfoBean>() {
        @Override
        public DishesInfoBean createFromParcel(Parcel source) {
            return new DishesInfoBean(source);
        }

        @Override
        public DishesInfoBean[] newArray(int size) {
            return new DishesInfoBean[size];
        }
    };
}
